package com.shop.admin.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.shop.admin.entity.AllOrder;
import com.shop.admin.orgvo.SchoolOrgAllOrderVo;
import com.shop.admin.orgvo.ThisOrderDataVo;
import com.shop.admin.vo.AdminErrandVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface AllOrderDao extends BaseMapper<AllOrder> {
    Page<AdminErrandVo> queryJoinErrandOrderCondition(@Param("page")Page<AdminErrandVo> page, @Param("params")Map<String, Object> params);

    List<SchoolOrgAllOrderVo> schoolOrgGeneralReportRunningList(@Param("orgId") int orgId);

    Page<SchoolOrgAllOrderVo> schoolOrgGeneralReportRunningPage(@Param("page")Page<SchoolOrgAllOrderVo> page,@Param("orgId") int orgId);

    ThisOrderDataVo getThisYearOrderDataRunningErrands(@Param("params") Map<String, Object> params);

    ThisOrderDataVo getLastYearOrderDataRunningErrands(@Param("params") Map<String, Object> params);
}
